<div class="wrapper-bz-page">
    <div class="wrapper-bz-body">
        <div class="column-block block-left" style="width:600px;">
            <div class="column-title">活动用户</div>
            <div class="column-content">
                <div class="column-datagrid">
                    <table id="table_clockin_activity_user" style="width:100%;height:100%"></table>
                </div>
            </div>
        </div>
        <div class="column-block block-right" style="left:610px;">
            <div class="column-title">用户打卡记录</div>
            <div class="column-content">
                <div class="column-datagrid">
                    <table id="table_menu_in_role_menu" style="width:100%;height:100%"></table>
                </div>
            </div>
        </div>
    </div>
</div>

<script>
    $(function () {
        var listTable = [
            {subject_keyword: "clockin_activity_user", page_code: "clockin_activity_user"},
            {subject_keyword: "user_clockin_record", page_code: "user_clockin_record"},
        ];
        var datagridConfigList = $(document).getRelatedDatagridConfig(listTable, 'user_id');
        console.log("config:", datagridConfigList);
        $.each(listTable, function (index, item) {
            console.log("foreach:", index);
            $('#table_' + item.subject_keyword).datagrid(datagridConfigList[index]);
        });
    });
</script>